#encoding=utf8
import matplotlib.pyplot as plt
from itertools import islice
# plt.rcParams['font.sas-serig']=['SimHei'] #用来正常显示中文标签
plt.rcParams['axes.unicode_minus']=False #用来正常显示负号


scan_users_30 = []
scan_times_30 =[]

for line in islice(open("/Users/leichen/Downloads/wifi_10000_sample.txt"), 1, None):
    ll = line.strip("\n").split("\t")
    scan_users_30.append(int(ll[10]))
    scan_times_30.append(int(ll[9]))

plt.figure(1)
plt.scatter(scan_users_30,scan_times_30)
plt.xlabel("scan_users_30")
plt.ylabel("scan_times_30")

plt.title("")
plt.show()